package com.alinesno.cloud.busines.shop.manage.entity;
import com.alinesno.sdk.generator.table.annotation.ColumnComment;
import com.alinesno.sdk.generator.table.annotation.ColumnType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alinesno.cloud.common.facade.mapper.entity.BaseEntity;

import java.util.Date;

/**
 * 功能名： 用户信息
 * 数据表：  user
 * 表备注： 用户信息表
 * @author wangyongkang ${authorEmail}
 * @date 2022-03-17 23:48:40
 */
@TableName("user")
public class UserEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;
    // fields
    /**
    * 用户名
    */
    @ColumnComment("用户名")
    @Excel(name="用户名")
    @ColumnType(length = 100)
    @TableField("user_name")
    private String userName;
    /**
    * 密码
    */
    @ColumnComment("密码")
    @Excel(name="密码")
    @ColumnType(length = 200)
    @TableField("password")
    private String password;
    /**
    * 手机号
    */
    @ColumnComment("手机号")
    @Excel(name="手机号")
    @ColumnType(length = 50)
    @TableField("phone")
    private String phone;
    /**
    * 邮箱
    */
    @ColumnComment("邮箱")
    @Excel(name="邮箱")
    @ColumnType(length = 100)
    @TableField("email")
    private String email;
    /**
    * 是否有效(1=是；0=否)
    */
    @ColumnComment("是否有效(1=是；0=否)")
    @Excel(name="是否有效(1=是；0=否)")
    @ColumnType(length = 11)
    @TableField("is_active")
    private Byte isActive;
    /**
    * 创建时间
    */
    @ColumnComment("创建时间")
    @Excel(name="创建时间",exportFormat = "yyyy-MM-dd")
    @ColumnType(length = 0)
    @TableField("create_time")
    private Date createTime;
    //getter and setter
    public String getUserName(){
        return this.userName;
    }
    public UserEntity setUserName(String arg){
        this.userName = arg;
        return this;
    }
    public String getPassword(){
        return this.password;
    }
    public UserEntity setPassword(String arg){
        this.password = arg;
        return this;
    }
    public String getPhone(){
        return this.phone;
    }
    public UserEntity setPhone(String arg){
        this.phone = arg;
        return this;
    }
    public String getEmail(){
        return this.email;
    }
    public UserEntity setEmail(String arg){
        this.email = arg;
        return this;
    }

    public Byte getIsActive() {
        return isActive;
    }

    public void setIsActive(Byte isActive) {
        this.isActive = isActive;
    }

    public Date getCreateTime(){
        return this.createTime;
    }
    public UserEntity setCreateTime(Date arg){
        this.createTime = arg;
        return this;
    }
}
